var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});
var photos = [];
photos.push({
  name : 'Yuhu',
  url : 'http://img2.imgtn.bdimg.com/it/u=121437423,705085133&fm=21&gp=0.jpg'
},{
  name : 'Hui',
  url : 'http://tu.southcn.com/data/pics/preview_img/284/KOfovjXpyCdoIvIahKqVTTmN.jpg'
});
/* GET home page. */
router.get('/photos', function(req, res, next) {
  res.render('photos/photo-list', { title: 'Photos',photos:photos });
});

module.exports = router;
